﻿#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<string>
using namespace std;

class Student {
public:
	void setName(string Name) {
		name = Name;
	}
	void setId(int Id) {
		id = Id;
	}
	void print() {
		cout << "姓名：" << name << "，学号：" << id << endl;
	}
private:
	string name;
	int id;
};

int main()
{
	Student st;
	st.setName("贝吉塔");
	st.setId(3);
	st.print();

	system("pause");
	return EXIT_SUCCESS;
}